let path=require('path')
let webpack=require('webpack')
module.exports={
    mode:'production',
    entry:{
        es:'./es.js'
    },
    output:{
        filename:'[name].js',
        path:path.join(__dirname,'./dll'),
        library:{
            name:'[name].js',
            type:'window'
        }
    },
    plugins:[
       new webpack.DllPlugin({
           name:'[name].js',
           path:path.join(__dirname,'./dll/main.json')
       })
    ]
}